<?php
	include_once(realpath(dirname(__FILE__)) . "/../../../fonctions/authplugins.php");

	autorisation("mailjet");

	include_once(realpath(dirname(__FILE__)) . "/Mailjet.class.php");
	include_once(realpath(dirname(__FILE__)) . "/admin/action.php");
?>

<?php

	//$mailjet = new Mailjet();
	//echo  $mailjet->stat("test", "sent");
	
	//$mailjet->mail("", "", "", "", "");

	
?>
	<div id="contenu_int">



<?php
	    
	if($_REQUEST['action_mailjet'] == ""){
?>
	    <p><a href="accueil.php" class="lien04">Accueil </a><img src="gfx/suivant.gif" width="12" height="9" border="0" /><a href="module_liste.php" class="lien04">Modules</a> <img src="gfx/suivant.gif" width="12" height="9" border="0" /><a href="#" class="lien04">Newsletter</a> </p>

<br />
 
<!--	<a href="module.php?nom=mailjet&action_mailjet=liste">Gestion des listes</a><br /><br />  -->
		<a href="module.php?nom=mailjet&action_mailjet=desinscription">Gestion des d&eacute;sinscriptions</a><br /><br />
		<a href="module.php?nom=mailjet&action_mailjet=campagne">Gestion des campagnes</a><br /><br />
		<a href="module.php?nom=mailjet&action_mailjet=statistique">Gestion des statistiques</a><br /><br />
		

<?php
	} else {
	
		switch($_REQUEST['action_mailjet']){
			case 'liste' : include("../client/plugins/mailjet/admin/liste.php"); break;
			case 'desinscription_annulation' : include("../client/plugins/mailjet/admin/desinscription.php"); break;
			case 'desinscription' : include("../client/plugins/mailjet/admin/desinscription.php"); break;
			case 'campagne' : include("../client/plugins/mailjet/admin/campagne.php"); break;
			case 'envoyer' : include("../client/plugins/mailjet/admin/campagne.php"); break;
			case 'statistique' : include("../client/plugins/mailjet/admin/statistique.php"); break;
		}
	
	}
?>	

</div>
</body>
</html>
